.class public Lcom/xingbook/a/b;
.super Ljava/lang/Object;


# instance fields
.field private a:Lcom/xingbook/a/h;


# direct methods
.method public constructor <init>(Lcom/xingbook/a/h;)V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, Lcom/xingbook/a/b;->a:Lcom/xingbook/a/h;

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;)Ljava/lang/String;
    .locals 8

    const/4 v2, 0x1

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "partner=\""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "2088801861402031"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "\"&out_trade_no=\""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "\"&subject=\""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Lcom/xingbook/a/b;->a:Lcom/xingbook/a/h;

    iget-object v1, v1, Lcom/xingbook/a/h;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "\"&body=\""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Lcom/xingbook/a/b;->a:Lcom/xingbook/a/h;

    iget-object v1, v1, Lcom/xingbook/a/h;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "\"&total_fee=\""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget v1, Lcom/xingbook/c/c;->b:I

    if-ne v1, v2, :cond_0

    const-string v1, "%.2f"

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    iget-object v4, p0, Lcom/xingbook/a/b;->a:Lcom/xingbook/a/h;

    iget v4, v4, Lcom/xingbook/a/h;->c:F

    float-to-double v4, v4

    const-wide v6, 0x40c3880000000000L

    div-double/2addr v4, v6

    invoke-static {v4, v5}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v4

    aput-object v4, v2, v3

    invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    :goto_0
    const-string v1, "\"&notify_url=\""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "http://www.xingbook.com/servlet/appAlipayNotifyServlet"

    invoke-static {v1}, Ljava/net/URLEncoder;->encode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "\"&service=\"mobile.securitypay.pay"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "\"&_input_charset=\"UTF-8"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "\"&return_url=\""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "http://m.alipay.com"

    invoke-static {v1}, Ljava/net/URLEncoder;->encode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "\"&payment_type=\"1"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "\"&seller_id=\""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "jiaozhujun@youcan.com.cn"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "\"&it_b_pay=\"1d"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "\""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    new-instance v1, Ljava/lang/String;

    invoke-direct {v1, v0}, Ljava/lang/String;-><init>(Ljava/lang/StringBuilder;)V

    const-string v0, "MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBANndEQecBiZ5dh2VLrVOGutdorSuM/wJ6KEOtD5P43Tw/JtIk/C71mvhd5p/AFxCZ82DRTpC2JK1i76eK/Y2RSUGyIr8AqldahHCvXa4EL2VYEDAsffohQ69xp/EYMrYrkLotJdemgvfB0VNrJyowMcQL5Kxh3KJZ4xhU98csq2JAgMBAAECgYAXREOoU2JYw4n4uNDnLfM0Baj1sND+brR4VtCrAu8gswfXMZYTFIxesxKJ3lxUfgcF7Kn9AdyNNnQ5JD0/qyYRDsinnSMkmRWlie5hX5SilVpy5nkqhEhtbWnYc9FPgBFY60DTWVcM205ACBoCkrWgUK6NM6VW8sR/aV+F58DHXQJBAO+utkn4KQls9yBOQq08N/EurpUHA2MvCJ/sFe+vZ+Q/rqfLBfvjQpD16yhhj5n0x6bYostPTv193IDkHNh/AZMCQQDoshW8gsZmj4i+5Nv3ly1PJthBGWrBueOFWwl+5Iuv902aIdZc9PWfcmoLLQiRsooZUJO4Ci1Fof1/QTkhZHXzAkEAob9SzzpEX1MEtu15e7Tuv7lUIcgY1h9Qf7Pv3c+Ome8L67pL8H+eVXtP1fF42lnhPkxmGDQOR21fmC/Y85VKNwJAJniC1Xa9fGlQj1bg8w8gY4ylhiXAm6Sy8/I4IK2CVqZJQylC+n1ZOnI9C/n3B7d/022Z7nxoPbHpaieLXXTxdwJBAO9KRqGxamADMx7MDefRhSs6wvdT5ffAw8AlwPqTyhbww24ih1QZpEQydPjyZ7qPDL1m401thR817O+/9fHOVsA="

    invoke-static {v1, v0}, Lcom/xingbook/a/j;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/net/URLEncoder;->encode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v2, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v1, "&sign=\""

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "\"&"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "sign_type=\"RSA\""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0

    :cond_0
    iget-object v1, p0, Lcom/xingbook/a/b;->a:Lcom/xingbook/a/h;

    iget v1, v1, Lcom/xingbook/a/h;->c:F

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    goto :goto_0
.end method
